﻿
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "LoadResources.generated.h"

// 静态/动态 加载资源

UCLASS()
class XCZ3_API ALoadResources : public AActor
{
	GENERATED_BODY()

	UPROPERTY(VisibleAnywhere)
	UStaticMeshComponent* StaticMeshComponent;
	
	
	// UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess="true"))
	FString AssetPath;

public:
	ALoadResources();
	virtual void BeginPlay() override;
	virtual void Tick(float DeltaTime) override;

	void StaticLoadResource();

	UFUNCTION(BlueprintCallable)
	bool DynaLoadResource(const FString& Path);

	UFUNCTION(BlueprintCallable)
	bool ModifyMaterialColor(const FString& Path);
};
